﻿@using System.Collections.Generic
@using System.Web.Optimization
@{
    ViewBag.Title = "文件上传";
}
<script src="@Url.Content("~/Scripts/uploadify/jquery.tmpl.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/uploadify/jquery.uploadify.min.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Scripts/uploadify/uploadify.css")" rel="stylesheet"/>
@Scripts.Render("~/bundles/uploadify")
<script type="text/javascript">
    $(function () {
        $("#file_upload").uploadify({
            'debug': true,
            "method":"post",
            'swf': '/Scripts/uploadify/uploadify.swf',
            'uploader': '/File/AjaxUploadFile',
            'buttonText' : '<a href="#">浏览</a>'
        });
    });
</script>
<fieldset>
    <legend>文件上传</legend>
    <input type="file" name="file_upload" id="file_upload" />
    <div id="file_upload-queue" class="uploadify-queue"></div>
    <p>
        <input type="submit" value="上传" />
    </p>
</fieldset>
